<?php

	// Company
	$company['name'] = "FSSIMock";

	// Application
	$app['name'] = "Fssi-Room-Game";
	if (eregi("^(.*)\?",$_SERVER['HTTP_REFERER'],$e)) {
		$app['address'] = $e[1];
	} else {
		$app['address'] = "localhost";
	}
	
	$page_address = $_SERVER['SERVER_NAME']."/";
	$page_address .= $_SERVER['REQUEST_URI'];
	//print_r($_SERVER);

	// Directories
	$dir['images'] = "../../images/";
	$dir['images'] = "images/";
	$dir['images_pannel_edges'] = $dir['images']."pannel_edges/";

	// Database
	$db_conn	= 0;
	if ($_SERVER['HTTP_HOST']=="apirian.free.fr") {
		$db_server	= "sql.free.fr";
		$db_user	= "apirian";
		$db_pass	= "fssimock";
		$db_name	= "apirian";
		$db_prefix	= "fm_";
	} else {
		$db_server	= "localhost";
		$db_user	= "root";
		$db_pass	= "mysql";
		$db_name	= "room_game";
		$db_prefix	= "";
	}
	$db_table = array(
		'room'		=> "room",
		'member'	=> "member",
	);
	$db_table_keys = array_keys($db_table);
	foreach ($db_table_keys as $dbtk) {
		$db_table[$dbtk] = $db_prefix.$db_table[$dbtk];
	}
	
	$ind = "";

	// Pages
	$pages = array(
		//key => array(name,display]); >>> -1 : not visible  / 0 : visible, but not in menu / 1 : visible in menu
		'home'		=> array("Accueil",1),
		'register'	=> array("Inscription",1),
		'activate'	=> array("Activation",0),
		'rooms'		=> array("Salles",1),
		'contact'	=> array("Contact",-1),
		'admin'	=> array("Administration",0),
	);
	$page_names = array_keys($pages);
	$page = $page_names[0];
?>
